home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / terrain.swf / scripts / DefineButton2_1397 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2007-03-20  |  828 b   |  24 lines

  1. on(press){
  2.    if(getProperty("/a1", _droptarget) eq "/b1" and getProperty("/a2", _droptarget) eq "/b2" and getProperty("/a3", _droptarget) eq "/b3" and getProperty("/a4", _droptarget) eq "/b4")
  3.    {
  4.       tellTarget("/sound")
  5.       {
  6.          gotoAndPlay(2);
  7.       }
  8.    }
  9.    else if(getProperty("/a1", _droptarget) ne "/b1" and getProperty("/a2", _droptarget) ne "/b2" or getProperty("/a2", _droptarget) ne "/b2" and getProperty("/a3", _droptarget) ne "/b3" or getProperty("/a1", _droptarget) ne "/b1" and getProperty("/a3", _droptarget) ne "/b3" or getProperty("/a3", _droptarget) ne "/b3" and getProperty("/a4", _droptarget) ne "/b4")
  10.    {
  11.       tellTarget("/sound2")
  12.       {
  13.          gotoAndPlay(2);
  14.       }
  15.    }
  16.    else
  17.    {
  18.       tellTarget("/sound1")
  19.       {
  20.          gotoAndPlay(2);
  21.       }
  22.    }
  23. }
  24.